﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UnityGameFramework.Runtime
{
    public static class LoadConfigEvent
    {
        /// <summary>
        /// ConfigAssetName 获取全局配置资源名称
        /// DependencyAssetName 获取被加载的依赖资源名称
        /// LoadedCount 获取当前已加载依赖资源数量
        /// TotalCount 获取总共加载依赖资源数量
        /// UserData 获取用户自定义数据
        /// </summary>
        public static Action<string, string, int, int, object> DependencyAsset;

        /// <summary>
        /// ConfigAssetName 获取全局配置资源名称
        /// Progress 获取加载全局配置进度
        /// UserData 获取用户自定义数据
        /// </summary>
        public static Action<string, float, object> Update;

        /// <summary>
        /// ConfigAssetName 获取全局配置资源名称
        /// ErrorMessage 获取错误信息
        /// UserData 获取用户自定义数据
        /// </summary>
        public static Action<string, string, object> Failure;

        /// <summary>
        /// ConfigAssetName 获取全局配置资源名称
        /// Duration 获取加载持续时间
        /// UserData 获取用户自定义数据
        /// </summary>
        public static Action<string, float, object> Success;
    }
}
